package com.x.erp.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.x.erp.model.Lyvin;
import com.x.erp.rpc.LyvinRpcService;
import com.x.framework.exception.BusinessException;
import com.x.framework.exception.ExceptionCode;
import com.x.framework.service.BaseService;
import org.springframework.stereotype.Component;

/**
 * 力扬vin解析记录服务
 */
@Component
@Service(interfaceName = "com.x.erp.rpc.LyvinRpcService", timeout = 60000)
public class LyvinService extends BaseService implements LyvinRpcService {

	/**
	 * 新增力扬vin解析记录信息
	 * @param lyvin
	 * @return
	 */
	@Override
	public Lyvin insertLyvin(Lyvin lyvin){
		try {
			return this.insert(lyvin);
		} catch (Exception e) {
			throw new BusinessException(ExceptionCode.EXCEPTION_CODE0000, e);
		}
	}

}
